package Java练习.面向对象综合练习.多态.综合练习;

import Java练习.综合练习.开发验证码;

public class Text {
    public static void main(String[] args) {
        Person person=new Person("老王",30);
        Person p=new Person("老李",25);
        Dog D=new Dog(2,"黑");
        Cat C=new Cat(1,"白");
        p.keepPet(C,"鱼");
        person.keepPet(D,"骨头");
    }
}
